import HttpHandler from "@/handler/HttpHandler";

export default class IdManager {
  constructor() {
    this.http=new HttpHandler();
  }
  //新增
  add(data){
    let url='/tie-demo/user/add';
    return this.http.post(url,data);
  }
//分页查询
  queryListPage(data) {
    const url='/tie-demo/user/queryListPage';
    return this.http.get(url,data);
  }
//删除
  delete(data) {
    const url='/tie-demo/user/delete';
    return this.http.post(url,data);
  }
//修改
  update(data) {
    const url='/tie-demo/user/update';
    return this.http.post(url,data);
  }
//详情
  findByOne(id) {
    const url='/tie-demo/user/findByOne/'+ id;
    return this.http.get(url);
  }
//查找日期
  findDate(id) {
    const url='/tie-demo/user/findDate/'+ id;
    return this.http.get(url);
  }
  //修改日期
  updateDate(date){
    const url='/tie-demo/user/updateDate';
    return this.http.post(url,date);
  }
  //删除
  batchDelete(data) {
    const url='/tie-demo/user/batchDelete';
    return this.http.post(url,data);
  }
}
